package com.atchangsha.system.constant;

import com.atchangsha.system.common.exception.EnumInterface;

public class FoodTableConstants {
    public static final String NOT_USE = "0";
    public static final String USE = "1";

    public enum FoodTableEnum implements EnumInterface {
        CREATE_TABLE_SUCCESS(1300,"开台成功"),
        CREATE_TABLE_FAIL(-1301,"开台失败"),
        ADD_SUCCESS(1302,"添加餐桌成功"),
        ADD_FAIL(-1303,"添加餐桌失败"),
        UPDATE_SUCCESS(1304,"修改餐桌信息成功"),
        UPDATE_FAIL(-1305,"修改餐桌信息失败"),
        DELETE_FAIL(-1306,"删除餐桌信息失败"),
        DELETE_SUCCESS(1307,"删除餐桌信息成功"),
        DELETE_ORDER_FAIL(-1308,"通过餐桌ID删除订单信息失败"),
        DELETE_RELATION_FAIL(-1309,"通过订单ID删除餐单订单关系失败"),
        DELETE_SALES_FAIL(-1310,"通过订单ID删除消费记录失败"),
        ;
        private int code;
        private String message;

        FoodTableEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        @Override
        public int getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return message;
        }
    }
}
